package com.lijin.study.java.ds;

import java.util.HashSet;
import java.util.Set;

import org.junit.Test;

public class HashSetTest {

	@Test
	public void test() {
		Set<String> s = new HashSet<String>();
		s.add("lijin");
		System.out.println(s.size());
		s.add("lijin2");
		System.out.println(s.size());
		s.add("lijin2");
		System.out.println(s.size());
		s.add("lijin");
		System.out.println(s.size());
		
		System.out.println(s);
		s.remove("lijin");
		System.out.println(s);
	}
}
